<?php 
session_start();
if ( isset($_SESSION['email'])){
session_destroy();
}

echo "<script language=\"javascript\">location.href=\"index.php\"; </script> ";
?>